package chico;

public class EscFactory {
	public static final int MANUAL = 1;
	public static final int FIFO = 2;
	
	public IEsc getInstance(int instance) {
		if(EscFactory.MANUAL == instance) {
			return new Manual();
		} else if (EscFactory.FIFO == instance) {
			return new Fifo();
		} else {
			throw new IllegalArgumentException("jkhkjh");
		}
		
	}
}
